# list1 = [1,12.12,True,'abc',[1,2,3],None]
# print(list1)
#
# del list1[0]
# print(list1)

# del list1[-2]
# print(list1)

# list.remove(数据)
# 移除数据
# 有重复的数据默认移除第一个
list2 = [1,12.12,True,'abc',[1,2,3],None]

# list2.remove('abc')
# print(list2)

# list.pop(下标值)
# # 弹出元素
# item = list2.pop()
# print(item)
# item = list2.pop(2)
# print(item)
#
#
# # list.clear()
# # 清空列表元素
# list2.clear()
# print(list2)

# 删除字符串
# str1 = 'abc'
# del str1
# print(str1)

list1 = ['python', 'java', 'c++', 'golang','java']
del list1[1]
print(list1)